package com.clean.cleantotal.compores.scan

import android.os.Bundle
import com.clean.cleantotal.base.BaseActivity
import com.clean.cleantotal.bean.FunType
import com.clean.cleantotal.databinding.ActivityScanBinding
import com.clean.cleantotal.utils.Utils

class ScanActivity : BaseActivity<ActivityScanBinding>() {
    override val viewBinding: ActivityScanBinding
        get() = ActivityScanBinding.inflate(layoutInflater)

    private var funType: FunType? = null
    override fun initParams(extras: Bundle?) {
        super.initParams(extras)
        extras?.let {
            funType = it.getSerializable("funType") as FunType?
        }
    }

    override fun initView() {
        when (funType) {
            FunType.DEVICE -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.LARGE -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.BATTERY -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.PROCESS -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.EMPTY -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }
            FunType.CLEAN -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }
            FunType.COMPRESS -> {
                mBinding.tvContent.text = "Scanning Photos..."
            }

            FunType.TIK -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.INS -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.TEL -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            FunType.WHATSAPP -> {
                mBinding.tvContent.text = "Scanning Mobile Phone ..."
            }

            null -> {}
            FunType.COMPRESS_IMAGE -> TODO()
        }

        val animal = Utils.showAnimalProcess(mBinding.tvPer) {

        }
    }

}